<template>
  <h1>文本相关指令</h1>
  <s>{{info}}</s>
  <p v-text="info"></p>
  <h1 v-html="info"></h1>
  <input type="button" value="启动" @click="f()">
</template>

<script setup>
import {ref} from "vue";

const info = ref('文本相关');
const f = () => {
  info.value='值被改变了';
}
</script>

<style scoped>

</style>